	<include file='Common:header' />
	<title></title>
    <js file="__PUBLIC__/js/jquery-1.8.2.min.js" />
	<css file="__PUBLIC__/Admin/css/arc.css" />
	<js file="__PUBLIC__/Admin/js/arc.js" />
</head>
<body>
        <h2><a href="{:U('index')}">商品类型></a><a>{$type.name}>属性列表:</a></h2>
        <div class="arcslist">
            <table class="table1">
                <thead>
                    <tr style="background:#72A9D3">
                        <!-- 全选box -->
                    	<th width="10"><input type="checkbox" name="selectallbtn"/></th>
                        <th width="10">ID</th>
                        <th>属性名称</th>
                        <th>属性类型</th>
                        <th>属性值</th>
                        <th width="260">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <!-- 遍历所有文章 -->
                    <foreach name="data" item="n">
                    <tr class="arclist">
                        <td><input type="checkbox" name="allarc" aid="{$n.id}"/></td>
                        <td>{$n.id}</td>
                        <td>{$n.name}</td>
                        <td>
                        	<if condition="$n['type']">
                        		规格
                        	<else/>
                        		属性
                        	</if>
                        </td>
                        <td>{$n.value}</td>
                        <td>
                            <!-- 类型属性操作 -->
                            <a href="{|U('editShow',array('aid'=>$n['aid']))}">编辑属性</a> |
                            <a href="javascript:void(0)" class="delarc" aid="{$n.aid}">删除属性</a>
                        </td>
                    </tr>
                    </foreach>
                	<tr>
                		<td colspan="5" align="right">
                			<if condition="$count eq 0">
                				<font color='red'>该类型属性为空，请添加属性！</font>
                			</if>
                		</td>
                		<td colspan="1"><a href="{:U('addAttr',array('tid' => $type['id']))}"><b>点击添加新属性</b></a></td>
                	</tr>
                    <if condition="$count neq 0">
                        <tr>
                            <td colspan="6" align="center">{$page}</td>
                        </tr>
                    </if>
                </tbody>

            </table>
            <!-- 文章选项操作 -->
            <div class="cancelAll">
            	<a href="javascript:void(0)" class="selectall">全选</a>
            	<a href="javascript:void(0)" class="toggle">反选</a>
            	<a href="javascript:void(0)" class="delselect">删除</a>
            </div>
        </div><!-- arcslist -->



</body>
</html>